package com.bdf.congcache.access;

import com.bdf.congcache.core.control.ContextCache;

/**
 * @Author 田培融
 * @Description 使用抽像类可以避免使用此类创建对象
 * @Date 19:05 2019/7/10
 **/
public class AbstractCongCacheAccess<K,V> implements ICongCacheAccessManagement {

    private final ContextCache<K, V> cacheControl;

    protected AbstractCongCacheAccess(ContextCache<K, V> cacheControl)
    {
        this.cacheControl = cacheControl;
    }

    public ContextCache<K, V> getCacheControl()
    {
        return cacheControl;
    }
}